/**
 * @(#) YearAdjustmentVO.as
 *
 * @date		2009. 04. 20.
 * @version		1.0
 * @author		Jo, ChangHun
 * @description	연말정산 메인화면 list Value Object
 * 				 
 */
package com.skt.common_hr.yearadjustment.model.vo
{
	import com.skt.common_hr.common.Variables;
	import com.wcl.utils.NumberUtil;
	
	[Bindable]
	public class YearAdjustmentVO
	{
		public var YEAR:Number;		//회계연도
		public var PERNR:String;	//사원번호
		public var ENAME:String;	//사원 또는 지원자의 포맷된 이름
		public var ORGTX:String;	//오브젝트 명
		public var TAXPAY:Number;	//과세대상급여
		public var PRETAX:Number;	//기납부세액
		public var FIXTAX:Number;	//결정세액
		public var MINTAX:Number;	//차감징수세액
		//public var EDTPR:String;	//가능기간
		public var DTEXT:String;	//가능기간텍스트
		public var CGBN:String;		//마감관리구분	2011.01
		public var INSERT:String;	
		
		//20140206
		public var PRELO:Number;			//기납부 지방소득세
		
		
		

		public function get cgbnType():int 
		{
			switch(CGBN) {
			case "Y1":
				return 0;
				break;
			case "Y2":
				return 1;
				break;
			case "Y3":
				return 2;
				break;
			}
			return 0;
		}

		/* public var ZYEAR:Number;	//회계연도
		public var PERNR:Number;	//사원번호
		public var SEQNO:String;	//순번
		public var YEAGBN:String;	//비용유형
		public var YEASUB:String;	//비용서브유형
		public var YEASTX:String;	//비용서브유형명
		public var COMCD:String;	//사업자등록번호
		public var COMNM:String;	//업체명
		public var REGNO:String;	//주민등록번호(한국)
		public var NATCT:String;	//국세청 건수
		public var NATAM:String;	//국세청 금액
		public var OTHCT:String;	//그외 건수
		public var OTHAM:String;	//그외 금액
		public var RENUM:String;	//일련번호
		public var BIGO:String;		//비고
		public var DPTYP:String;	//하위유형
		public var OBJPS:String;	//오브젝트식별
		public var ENAME:String;	//사원 또는  지원자의 포맷
		public var OBJPST:String;	//하위 유형 이름 */
		
		public function get TAXPAY_F():String{
			if(Variables.company=='FNU') {
				if(Variables.open == "2" || Variables.open == "3"){
					return "**********";
				}				
			}	
			return NumberUtil.NumberFormat(TAXPAY);
		}
		public function get PRETAX_F():String{
			if(Variables.company=='FNU') {
				if(Variables.open == "2" || Variables.open == "3"){
					return "**********";
				}				 
			}				
			return NumberUtil.NumberFormat(PRETAX);
		}
		public function get FIXTAX_F():String{
			if(Variables.company=='FNU') {
				if(Variables.open == "2" || Variables.open == "3"){
					return "**********";
				}				
			}					
			return NumberUtil.NumberFormat(FIXTAX);
		}
		public function get MINTAX_F():String{
			if(Variables.company=='FNU') {
				if(Variables.open == "2" || Variables.open == "3"){
					return "**********";
				}				
			}					
			return NumberUtil.NumberFormat(MINTAX);
		}
		
		//2014
		public function get PRELO_F():String{
			if(Variables.company=='FNU') {
				if(Variables.open == "2" || Variables.open == "3"){
					return "**********";
				}				
			}				
			return NumberUtil.NumberFormat(PRELO);
		}				
		
	}
}